doctype html
html
  head
    meta(charset="utf-8")
    meta(name="viewport",content="width=device-width, initial-scale=1, maximum-scale=1")
    meta(http-equiv="X-UA-Compatible",content="IE=edge, chrome=1")
    block header
      title= title
    link(rel="stylesheet", href="/layui/css/layui.css")
    link(rel='stylesheet', href='/stylesheets/style.css')
  body.gray
    .layui-header.header
      .layui-main
        a(href="/").logo #{portal.title}
        ul.layui-nav(lay-filter="navbar")
          li.layui-nav-item
            a(href="/movies") #{portal.moviestitle}
          if portal.images == 'on'
            li.layui-nav-item
              a(href="/imageslist") #{portal.imagestitle}
          if portal.articles == 'on'
            li.layui-nav-item
              a(href="/articles") #{portal.articlestitle}
          if portal.usersystem == 'on'
            if user
              li.layui-nav-item
                a(href="/addcard") 开通会员
              li.layui-nav-item(style="margin-left:10px;")
                a.layui-btn.layui-btn-normal(href="/logout") 注销
            else
              li.layui-nav-item
                a.layui-btn.layui-btn-normal(href="/login") 登陆
              li.layui-nav-item(style="margin-left:10px;")
                a.layui-btn(href="/register") 注册
    block content
    block footer
      .footer 
        | &copy; 2018 
        a(href="http://ffmpeg.moejj.com") 云转码express-ffmpeg
        | 倾情奉献 
        a(href="https://gitee.com/quazero") by屈阿零
        span.tongji!=portal.tongji
    block script
      script(src="/javascripts/jquery.min.js")
      script(src="/layui/layui.js")
      script(src="/javascripts/cms.js")